import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
// 解决低端安卓手机白屏问题
import 'babel-polyfill'
// 解决移动端300ms点击延迟
import fastClick from 'fastClick'

import {
  Toast,
  Icon,
  RadioGroup,
  Radio,
  Checkbox,
  CheckboxGroup,
  ActionSheet,
  Uploader,
  Dialog
} from 'vant'

Vue.use(Toast)
  .use(Icon)
  .use(RadioGroup)
  .use(Radio)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(ActionSheet)
  .use(Uploader)
  .use(Dialog)

Vue.config.productionTip = false

// 使用fastClick
fastClick.attach(document.body)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
